# -*- coding: utf-8 -*-
"""
@Time    : 2021/3/23 9:49
@Author  : hui lin
"""
from package.static.const import Faction, TypeIdConst
from client.model.tank.tank_base import TankBase


class PlayerTank(TankBase):

    def __init__(self, user_id: int, type_id: TypeIdConst, faction: Faction, **kwargs):
        super(PlayerTank, self).__init__(type_id, faction, **kwargs)
        self.user_id: int = user_id
        self.add_player_buff()
        self.stop_move()

    def add_player_buff(self):
        # 玩家血量，初始化时有加成
        self._cur_blood = self._cur_blood * 3
        self.max_blood = self.max_blood * 3
